package cn.dakaqi.vo.request.openPlatform;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author beliveli on 2016/7/18/0018
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ActivityVo {
    private String memberCode;
    private String activityCode;
    private int role;

    private String skill;
    private int scope;
    private int needs;
    private String name;
    private String demo;
    private String imgs;
    private int type;
    private String startTime;
    private String endTime;
    private String address;
    private String tags;
    private String weekDay;
    private String province;
    private String city;
    private String district;
    private Double lng;
    private Double lat;

    private String monitorMemberCode;
    private String crateUseMemberCode;
    private String groupCode;

    public static ActivityVo build(MaibaoVo maibaoVo){
        ActivityVo activityVo = new ActivityVo();
        activityVo.setMemberCode(maibaoVo.getMemberCode());
        activityVo.setActivityCode(maibaoVo.getActivityCode());
        activityVo.setRole(maibaoVo.getRole());
        activityVo.setSkill(maibaoVo.getSkill());
        activityVo.setScope(maibaoVo.getScope());
        activityVo.setNeeds(maibaoVo.getNeeds());
        activityVo.setName(maibaoVo.getActivityName());
        activityVo.setDemo(maibaoVo.getDemo());
        activityVo.setImgs(maibaoVo.getImgs());
        activityVo.setType(maibaoVo.getType());
        activityVo.setStartTime(maibaoVo.getStartTime());
        activityVo.setEndTime(maibaoVo.getEndTime());
        activityVo.setAddress(maibaoVo.getAddress());
        activityVo.setTags(maibaoVo.getTags());
        activityVo.setWeekDay(maibaoVo.getWeekDay());
        activityVo.setProvince(maibaoVo.getProvince());
        activityVo.setCity(maibaoVo.getCity());
        activityVo.setDistrict(maibaoVo.getDistrict());
        activityVo.setLat(maibaoVo.getLat());
        activityVo.setLng(maibaoVo.getLng());
        activityVo.setMonitorMemberCode(maibaoVo.getMonitorMemberCode());
        activityVo.setCrateUseMemberCode(maibaoVo.getCrateUseMemberCode());
        activityVo.setGroupCode(maibaoVo.getGroupCode());
        return activityVo;
    }
}
